<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加新计费名</title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://pic2.58.com/n/tuan/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/javascript/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/javascript/report/Date.js"></script>
<script type="text/javascript" src="/javascript/jquery.form.js"></script>
</head>
<body>
<script >
		 $(function(){$("#toadd").click(function(){ 
    		 		jQuery.ajax({
    						url:"/ors/alliancemanager/addnewbill",
    						type:"post",
    						async:true,
    						data : $('#addnewbillform').serialize(), 
    						success:function(data){
    							if(data == "success"){
    								alert("添加成功！");
								}else{
    								alert("添加失败！");
    							}
								window.location.href="manager";
    						}
    				});
			 })
		 })
		 
		 
		function isshare(id){
			$("#share").val(id);
		}
</script>
<div class="lr_both">
<div class="right_conts">
  <div class="mg_tt">
    <div class="right_search">
      <div class="rs_title_bg">
        <h2 class="rs_title">计费名添加</h2>
      </div>
	  
    </div>
	</br>
	</br>
	<form id="addnewbillform" name="addnewbillform" action="/ors/alliancemanager/addnewbill" method="post">
    <div class="table_div" align="center">
	  <input type="hidden" id="share" name="share" value="0" />
      <table class="sj_tl"  width="70%" border="0" cellspacing="0" cellpadding="0">
		<tr>
          <th align="center" colspan="2">计费名信息</th>
		</tr>
		<tr>
           <td align="center" >来源</td>
		   <td align="center"  >
			 <select style="width:175px" name="billingattr" id="billingattr">
					<option value="58" >58</option>
					<option value="jxydt">驾校一点通</option>
					<option value="gj">赶集</option>
			 </select>
           </td>
		 
        </tr>
        <tr>
           <td align="center" >联盟名</td>
		  <td align="center"  ><input type="text"   name="billingattr" id="billingattr"/></td>
        </tr>

		  <tr>
           <td align="center" >广告类型</td>
		  <td align="center" ><input type="text"  name="billingattr" id="billingattr" "/></td>
        </tr>
		
		 <tr>
           <td align="center" >计费名</td>
		  <td align="center" ><input type="text"  name="billingattr" id="billingattr"/></td>
        </tr>
		
		  <tr>
           <td align="center" >渠道</td>
		  <td align="center" ><input type="text" name="billingattr" id="billingattr" /></td>
        </tr>
		
		  <tr>
           <td align="center">一级类</td>
		  <td align="center" ><input type="text" name="billingattr" id="billingattr" /></td>
        </tr>
		
		<tr>
           <td align="center">二级类</td>
		  <td align="center" ><input type="text" name="billingattr" id="billingattr" /></td>
        </tr>
		
		<tr>
           <td align="center">是否与合作方分成</td>
		   <td align="center" >
				<input type="radio"  name="ssss" id="ssss"   value="0" onclick="isshare('1')">&nbsp 是</input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="radio"  name="ssss" id="ssss"  checked value="0" onclick="isshare('0')">&nbsp 否</input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			</td>
        </tr>
		
		<tr>
           <td align="center">计算公式</td>
		  <td align="center" ><input type="text"  name="billingattr" id="billingattr" /></td>
        </tr>
		
		<tr>
           <td align="center">广告位置</td>
		  <td align="center" ><input type="text" name="billingattr" id="billingattr" /></td>
        </tr>
		
		<tr>
           <td align="center">适用时间（开始）</td>
		  <td align="center" ><input type="text" name="billingattr" id="billingattr" class="Wdate" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/></td>
        </tr>
		
		<tr>
           <td align="center">使用时间（结束）</td>
		  <td align="center" ><input type="text" name="billingattr" id="billingattr" class="Wdate" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/></td>
        </tr>
		
		<tr>
           <td align="center">备注</td>
		   <td align="center" >
			<textarea style="width:280px;height:60px"  name="billingattr" id="billingattr" ></textarea>
		   </td>
        </tr>
	 </table>
		</br>
	  <table class="sj_tl"  width="70%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
          <th align="center" colspan="2">
            <input type="button"  id="toadd" name="toadd"  value="添加"/>
			&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;
			<input type="reset"    value="重置"/>
		  </th>
		</tr>
      </table>
    </div>
	</form>
  </div>

</div>
</div>
</body>
</html>
